package com.xuelang.pipeline.worker.client.pod.dto;

import com.xuelang.pipeline.worker.client.common.result.BaseK8sDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotEmpty;

/**
 * @author liuyuan.ly
 * @since 2024/5/29 10:31
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PodQueryDTO extends BaseK8sDTO {
    private static final long serialVersionUID = -4174134294002760965L;
    @NotEmpty(message = " 命名空间不能为空")
    private String namespaceName;
    private String podName;
    private String container;
    private Integer limit;
    /** 起始时间（多少秒之前）*/
    private Integer sinceSeconds;
    /**
     * 尾部行数
     */
    private Integer tailLines;

    public PodQueryDTO() {
        this.limit = 100;
    }
}

